import request from "@/utils/request";

// 借出 pro
export function CheckoutProd(data) {
  return request({
    url: "/admin/assets/checkout/",
    method: "post",
    data: data
  });
}

// 批量借出 pro
export function batchcheckout(data) {
  return request({
    url: "/admin/assets/batchcheckout/",
    method: "post",
    data: data
  });
}

// 归还 pro
export function CheckinProd(data) {
  return request({
    url: "/admin/assets/checkin/",
    method: "post",
    data: data
  });
}

// 新增pro借还资产历史记录
export function checkHis(query) {
  return request({
    url: "/admin/assets/checkhis/",
    method: "get",
    params: query
  });
}

// 新增pro 查看资产当前借出情况
export function assignedInfo(query) {
  return request({
    url: "/admin/assets/assignedinfo/",
    method: "get",
    params: query
  });
}

// 组件借出记录
export function componentRecords(query) {
  return request({
    url: "/admin/assets/componentrecords/",
    method: "get",
    params: query
  });
}

// 消耗品借出记录
export function consumableRecords(query) {
  return request({
    url: "/admin/assets/consumablerecords/",
    method: "get",
    params: query
  });
}

// 软件许可证借出记录
export function licenseRecords(query) {
  return request({
    url: "/admin/assets/licenserecords/",
    method: "get",
    params: query
  });
}
